Skip to content

Revert to the file-based keychain (fix auto-logout / can't sign in)#21

Merged
alexmodrono merged 1 commit into
mainfrom
fix/revert-dp-keychain
Jun 3, 2026
Merged

Revert to the file-based keychain (fix auto-logout / can't sign in)#21
alexmodrono merged 1 commit into
mainfrom
fix/revert-dp-keychain

Conversation

@alexmodrono

Copy link
Copy Markdown
Owner

Summary

Build 33 auto-logs-out and won't let the user sign back in. Cause: the data-protection keychain change (PR #18). Once a token was migrated into the data-protection keychain and the file-based copy deleted, a later launch couldn't read it back — retrieveToken returned nil, the app dropped to onboarding, and re-login didn't persist (sign-in stores and reads through the same failing path). Confirmed on the affected machine: file-based keychain empty, account still present, app logged out.

Fix

Revert KeychainManager to the original file-based implementation, which worked for both the app and the File Provider extension (same-team partition). PR #18 was based on a misdiagnosis — the extension's "signed out" state was App Group database access (EPERM), not the keychain.

After updating, users whose token was migrated sign in once more; it then persists. Combined with the DB-in-state-directory fix already on main, this restores the original proven configuration (state-directory DB + file-based keychain) plus the disk-I/O safeguard and What's New-per-build.

Build

Compiles clean (app + extension + MCP).

The data-protection keychain change logged users out: once a token was migrated into the data-protection keychain and the file-based copy removed, a later launch could not read it back, so the app fell to onboarding and re-login would not stick (sign-in stored and read through the same failing path).

The original file-based keychain worked for both the app and the File Provider extension (same-team partition). The data-protection change was based on a misdiagnosis — the extension's "signed out" state was the App Group database access, not the keychain — so revert it. Users whose token was migrated will sign in once more; it then persists.
@alexmodrono alexmodrono merged commit ab32f69 into main Jun 3, 2026
@alexmodrono alexmodrono deleted the fix/revert-dp-keychain branch June 3, 2026 14:00
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Nightly Build

Download Findle Nightly (unsigned)

Built from 5360de5.

Important

This build is unsigned. macOS will block it on first launch. To open it:

  1. Try to open the app normally — macOS will show a warning and refuse.
  2. Go to System Settings → Privacy & Security, scroll down, and click Open Anyway.
  3. The File Provider extension requires code signing and won't work in this build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant